getByCssSelector

public final static Element getByCssSelector(SearchContext $self, String cssSelector)
public final static Element getByCssSelector(SearchContext $self, String cssSelector)

Returns the first Element found in the current search context by the given cssSelector.

Since

8.0.0

Throws

if no element found.